<?php
/**
{
    "loginLogId": "INT //登录日志id",
    "userName": "VARCHAR //用户名",
    "ip": "VARCHAR //ip",
    "ipInfo": "VARCHAR //ip地址所在地",
    "reason": "VARCHAR //密码是否正确",
    "created": "DATETIME //日志创建时间"
}
 */

class LoginLog extends Base
{
    
	public $loginLogId= '';//登录日志id
	public $userName= '';//用户名
	public $ip= '';//ip
	public $ipInfo= '';//ip地址所在地
	public $reason= '';//密码是否正确
	public $created= 'CURRENT_TIMESTAMP';//日志创建时间

    public $isDbData = false;

    public function __construct()
    {
        parent::__construct();
    }


    public function __get($name) {
        return $this->$name;
    }

    public function __set($name, $value) {
        if(!$this->isDbData){
            if(!in_array($name,$this->loadedFiled))$this->loadedFiled[] = $name;
        }

        $this->$name=$value;
        $this->arr[$name] = $value;
    }

    public  function table()
    {
        return 'tbl_login_log';
    }
    
    public  function key(){
        return 'loginLogId';
    }


    
    public static  function hideField()
    {
        return [];
    }
            
    public static  function skipField()
    {
        return [];
    }
            
    public static  function noViewField()
    {
        return [];
    }
            
    public static  function jsonField()
    {
        return [];
    }
            
    public static  function noLoadField()
    {
        return [];
    }
            
    public static  function deleteField()
    {
        return [];
    }
            
    public function className()
    {
        return 'LoginLog';
    }
    
    public  function field()
    {
        return array (  'loginLogId' =>   array (    0 => 'INT',    1 => 11,    2 => '登录日志id',  ),  'userName' =>   array (    0 => 'VARCHAR',    1 => 50,    2 => '用户名',  ),  'ip' =>   array (    0 => 'VARCHAR',    1 => 15,    2 => 'ip',  ),  'ipInfo' =>   array (    0 => 'VARCHAR',    1 => 200,    2 => 'ip地址所在地',  ),  'reason' =>   array (    0 => 'VARCHAR',    1 => 100,    2 => '密码是否正确',  ),  'created' =>   array (    0 => 'DATETIME',    1 => 0,    2 => '日志创建时间',  ),);
    }


}